<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="/static/js/jquery-easyui/themes/bootstrap/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/js/jquery-easyui/themes/icon.css">
    <script type="text/javascript" src="/static/js/jquery-easyui/jquery.min.js"></script>
    <script type="text/javascript" src="/static/js/jquery-easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/static/js/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>

    <script type="text/javascript" src="/static/js/views/stockincome.js"></script>
</head>
<body>


    <div class="easyui-dialog" id="SelectProduct_dialog" data-options="closed:true" style="width: 900px;height: 800px">
        <table id="SelectProduct_datagrid"></table>
    </div>

    <div id="stockincome_dialog_buttons">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:'true'" data-cmd="save">提交</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:'true'" data-cmd="cancel">取消</a>

    </div>

    <%--新增--%>
    <div id="stockincome_dialog" style="width: 800px;height:500px " data-options="buttons:'#stockincome_dialog_buttons',closed:true">
        <form id="stockincome_dialog_form" style="height:80%;">
            <input type="hidden" id="id">
            <table>
                <tr>
                    <td>支付方式:
                        <select id="cc" class="easyui-combobox" name="payment" style="width:200px;">
                            <option value="1">微信</option>
                            <option value="2">支付宝</option>
                            <option value="3">银行卡</option>
                            <option value="4">现金</option>
                        </select>
                    </td>
                    <td>供应商:<input id="cc1" class="easyui-combobox" data-options="
                    valueField: 'id',
                    textField: 'name',
                    url: 'stockincome/getSelectList'" name="supplier.id" />
                    </td>
                    <td>仓库:<input id="depot" class="easyui-combobox" data-options="
                    valueField: 'id',
                    textField: 'name',
                    url: '/depot/list'" name="depot.id" />
                    </td>
                    <td>操作人员:<input id="operator" class="easyui-combobox" data-options="
                    valueField: 'id',
                    textField: 'name',
                    url: '/operator/listAll'" name="operator.id" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:'true'" data-cmd="addProduct">选择商品</a>

                    </td>
                </tr>
                <tr>
                    <td>

                    </td>
                </tr>
            </table>
            <div style="height: 100%;width: 100%">
                <table  class="easyui-datagrid" style="border-top: 1px solid" id="stockincome_dialog_datagrid"  data-options="fit:true,border:false,fitColumns:true,height:700"></table>
            </div>
        </form>

    </div>

    <div id="view_button">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:'true'" data-cmd="cancel">取消</a>

    </div>

    <div class="easyui-dialog" id="view_dialog" data-options="closed:true,title:'查看详情',buttons:'#view_button'">
        <form id="view_form">
            <table style="font-size: 10px;width: 250px">
                <tr>
                    <td>供应商:</td>
                    <td>
                        <input class="easyui-textbox"  data-options="readonly:true" name="supplier.name"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        仓库:
                    </td>
                    <td><input class="easyui-textbox" data-options="readonly:true" name="depot.name"/></td>
                </tr>
                <tr>
                    <td>
                        商品编码:
                    </td>
                    <td><input class="easyui-textbox" data-options="readonly:true" name="product.sn"/></td>
                </tr>
                <tr>
                    <td>
                        商品名称:
                    </td>
                    <td><input class="easyui-textbox" data-options="readonly:true" name="product.productName"/></td>
                </tr>
                <tr>
                    <td>
                        单位:
                    </td>
                    <td><input class="easyui-textbox" data-options="readonly:true" name="product.unit"/></td>
                </tr>
                <tr>
                    <td>
                        数量:
                    </td>
                    <td><input class="easyui-textbox" data-options="readonly:true" name="number"/></td>
                </tr>
                <tr>
                    <td>
                        单价:
                    </td>
                    <td><input class="easyui-textbox" data-options="readonly:true" name="costPrice"/></td>
                </tr>
                <tr>
                    <td>
                        金额:
                    </td>
                    <td><input class="easyui-textbox" data-options="readonly:true" name="amountPrice"/></td>
                </tr>
            </table>
        </form>
    </div>

    <div id="stockincome_toolbar">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:'true'" data-cmd="stockincomeAdd">新增进货</a>
        <form id="input" enctype="multipart/form-data" style="display: inline-block" action="/stockincome/input" method="post">
            <input class="easyui-filebox" name="file" style="width:300px" data-options="accept:'.xls'">
        </form>
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:'true'" data-cmd="stockincomeinput">导入</a>
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:'true'" data-cmd="stockincomeView">查看详情</a>

        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:'true'" data-cmd="stockincomeExport">导出打印</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:'true'" data-cmd="sureInProductStock">确认入库</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:'true'" data-cmd="stockincomeDelete">删除</a>
        <span>关键字</span>
        <input type="text" class="easyui-textbox" id="keyword"/>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:'true',prompt:'请输入编号或供应商搜索'" data-cmd="stockincomeSearch">搜索</a>
    </div>

    <table id="stockincome_datagrid">

    </table>

</body>
</html>
